<?php
/**
 * User: b179a9
 * Date: 10/13/11
 * Time: 8:12 PM 
 */
 
class App_Form_Page_Form extends Zend_Form {

    public function init() {
        $this->setAction('');
        $this->setMethod('post');

        $id = new Zend_Form_Element_Hidden('id');
        $this->addElement($id);

        $title = new Zend_Form_Element_Text('menuPageName');
        $title->setLabel('Titile:')
            ->setRequired()
            ->addFilter(new Zend_Filter_StripTags())
            ->setAttrib('class', 'text-input small-input');
        $this->addElement($title);

        $content = new Zend_Form_Element_Textarea('content');
        $content->setLabel('Content:')
            ->setRequired();
        $this->addElement($content);

        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Submit')
                ->setAttrib('class', 'button');
        $this->addElement($submit);
    }

}
